package org.zhq.util;

import java.io.Closeable;
import java.io.IOException;

/**
 * @author zhengquan
 * @date 2018/12/27
 */
public class CloseUtils {
    public static void close(Closeable ...closeables){
        if(closeables==null){
            return;
        }
        for (Closeable closeable : closeables) {
            if(closeable==null){
                continue;
            }
            try {
                closeable.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

    }
}
